package com.haima.sage.bigdata.api.vo;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

@XmlType(name = "result")
@XmlRootElement
@JacksonXmlRootElement(localName = "result")
public class Result {
    private String status;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String msg;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String subMsg;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Object data;

    public Result() {
    }

    public Result(String status, String msg, String subMsg, Object data) {
        this.status = status;
        this.msg = msg;
        this.subMsg = subMsg;
        this.data = data;
    }

    public Result(String status, String msg, String subMsg) {
        super();
        this.status = status;
        this.msg = msg;
        this.subMsg = subMsg;
    }

    public Result(String status, Object data) {
        super();
        this.status = status;
        this.data = data;
    }

    public String getSubMsg() {
        return subMsg;
    }

    public void setSubMsg(String subMsg) {
        this.subMsg = subMsg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
